<!DOCTYPE html>
<html>
<head></head>

<body>
<canvas id="canvas" width="800" height="600">
<script type="text/javascript" src="bench.js"></script>
<script type="text/javascript" src="canvas_arcs.js"></script>


<script type="text/javascript">
window.onload = init;

var canvas;
var context;

function init() {
  canvas = document.getElementById('canvas');
  context = canvas.getContext('2d');

  num_arcs = 1000;
  arc_speed = 2;
  arcs.init(num_arcs, arc_speed, 800, 600);
  arcs.draw(context);

  bench.run(draw);
}

function draw() {
  context.clearRect(0, 0, 800, 600);
  arcs.draw(context);
};

</script>

</body>

</html>
